import request from '@/utils/request'

// 查询社区活动列表
export function listActiveinfo(query) {
  return request({
    url: '/activeinfo/activeinfo/list',
    method: 'get',
    params: query
  })
}

// 查询社区活动详细
export function getActiveinfo(id) {
  return request({
    url: '/activeinfo/activeinfo/' + id,
    method: 'get'
  })
}

// 新增社区活动
export function addActiveinfo(data) {
  return request({
    url: '/activeinfo/activeinfo',
    method: 'post',
    data: data
  })
}

// 修改社区活动
export function updateActiveinfo(data) {
  return request({
    url: '/activeinfo/activeinfo',
    method: 'put',
    data: data
  })
}

// 删除社区活动
export function delActiveinfo(id) {
  return request({
    url: '/activeinfo/activeinfo/' + id,
    method: 'delete'
  })
}
